# 利用 while 循环向列表中添加数据

family = []

name = input("添加新成员：")

while name != "":
    family.append(name)
    name = input("添加新成员：")

print(family)
